// 科室相关API服务
const request = require('../utils/request');

// 获取科室列表
const getDepartmentList = (page = 1, size = 10) => {
  return request.get('/department/list', { page, size });
};

// 获取科室详情
const getDepartmentDetail = (id) => {
  return request.get(`/department/${id}`);
};

// 获取科室下的医生
const getDepartmentDoctors = (departmentId) => {
  return request.get('/hospital/staff', { departmentId });
};

module.exports = {
  getDepartmentList,
  getDepartmentDetail,
  getDepartmentDoctors
}; 